package com.sso.openFeign;



import com.common.entity.Role;
import com.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @create 2022-08-29
 */
@FeignClient(value = "caiduoduo-permission")
public interface PermissionFeign {
    @RequestMapping ("/api/permission/user/findByUsername")
    public User findByUsername(@RequestParam String username );
    @RequestMapping("/api/permission/permission/selectPermissionByUserid")
    List<String> findPermissionByUserid(@RequestParam String userId);



}
